#第一题
sum = 0
for i in range(1,101):
    sum += i
    print(sum)

# 第二题
num = 2
while num <=100:
         print(num,end=" ")
         num += 2

# 第三题
print("100以内的质数：")
for num in  range(2, 101):
    is_prime = True
    for i in  range(2,int(num**0.5) + 1):
        if num % i ==0:
            is_prime = False
            break
            if is_prime:
                print(num, end="")
